<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="../js/vue.js"></script>
</head>
<body>
    <div id="container">
        <h2>v-for</h2>
        <div v-for="value in num">{{value}}</div>
        <div v-for="(value,index) in num">{{value}}</div>
        <div v-for="(value,index) in num">{{index}}</div>
        <div v-for="value in obj">{{value}}</div>
        <div v-for="(value,key) in obj">{{value}}</div>
        <div v-for="(value,key) in obj">{{key}}</div>
        <div v-for="(value,key,index) in obj">{{index}}</div>
        <hr>
        <div v-for="value in obj":key="obj.id">
            <p>{{obj.name}}</p>
            <p>{{value}}</p>
        </div>
    </div>
    <script>
        new Vue({
            el:"#container",
            data:{
                num:[1,2,3,4],
                obj:{
                    name:"iboy",
                    age:20,
                    gender:"male",
                    favs:["lol","adc"],
                    addr:{
                        prov:"jaingsu",
                        city:"nanjing"
                    }
                }
            }
        })
    </script>
</body>
</html>